##
## Makefile for minishell2 in /home/lingla_j/work/tutorat/env
## 
## Made by julien linglain
## Login   <lingla_j@epitech.net>
## 
## Started on  Tue Feb 28 18:20:41 2012 julien linglain
## Last update Fri Apr  6 11:48:30 2012 julien linglain
##

CC	=	gcc

NAME	=	mysh

CFLAGS	+=	-Wall -Werror -ansi -pedantic -Wno-unused

SRC	=	my_strcmp.c \
		my_strcat.c \
		mysh.c \
		my_str_to_wordtab.c \
		my_str_to_wordtab2.c \
		my_strdup.c \
		xfunc.c \
		my_read.c \
		delete2.c \
		exec_com.c \
		exec_com2.c \
		tools.c \
		delete.c \
		tools2.c \
		epur.c \
		my_putnbr.c \
		b_env.c \
		b_exit.c \
		b_cd.c \
		b_cd_tools.c \
		b_pwd.c \
		prompt.c \
		env.c \
		b_echo.c

OBJ	=	$(SRC:.c=.o)

RM	=	rm -rf

$(NAME):	$(OBJ)
		$(CC) $(CFLAGS) -o $(NAME) $(OBJ)

all:		$(NAME)

clean:
		$(RM) $(OBJ)
		$(RM) *~ \#*\#

fclean:		clean
		$(RM) $(NAME)

re:		fclean all

.PHONY:		all clean fclean re